import { PetNewBaseView } from "./PetNewBaseView";
import { Language } from "../../../../extend/language/Language";
import { Cache } from "../../cache/Cache";
import { SPetInfo } from "../../../../Message/Game/SPetInfo";
import { GModuleEvent } from "../../mvc/GModuleEvent";
import { PetUtil } from "./info/PetUtil";
import { AIManager } from "../../scene/ai/AIManager";
import { Dispatcher } from "../../../mvc/core/Dispatcher";
import { DataEvent } from "../../events/DataEvent";
import { EventName } from "../../mvc/EventName";
import { ShopRule } from "../../rules/ShopRule";
import { ObjCreate } from "../common/ObjCreate";
import { GImageBitmap } from "../../../../com/mui/controls/GImageBitmap";
import { ImagesConst } from "../../resource/ImagesConst";
import { PetModelPanel } from "./PetModelPanel";
import { PetTileItem } from "./PetTileItem";
import { GlobalStyle } from "../../../common/global/GlobalStyle";
import { PetMingScoreItem } from "./ming/PetMingScoreItem";
import { ResFileConst } from "../../resource/ResFileConst";
import { EquipmentStrengthAddPanel } from "../player/equip/EquipmentStrengthAddPanel";
import { EquipTargetType } from "../../resource/info/EquipTargetType";
import { PetTalentTargetAddPanel } from "./PetTalentTargetAddPanel";
import { PetEquipJewelTargetAddPanel } from "./jewelAdd/PetEquipJewelTargetAddPanel";
import { WuXingPropertyDistribution } from "./WuXingPropertyDistribution";
import { PetProcessBar } from "./PetProcessBar";
import { GTextFormat } from "../../../common/GTextFormat";
import { FontUtil } from "../../../common/font/FontUtil";
import { HTMLUtil } from "../../../../com/gengine/utils/HTMLUtil";
import { PetAttrPanel } from "./PetAttrPanel";
import { PetEquipPanel } from "./equip/PetEquipPanel";
import { PetDetailSkillListPanel } from "./skillList/PetDetailSkillListPanel";
import { FilterConst } from "../../../component/gconst/FilterConst";
import { SPetModelList } from "../../../../Message/Game/SPetModelList";
import { PetChangeModelData } from "./changeModel/PetChangeModelData";
import { GameDefConfig } from "../../resource/GameDefConfig";
import { BgLabelToolTip } from "../common/tooltip/BgLabelToolTip";
import { GlobalClass } from "../../../../com/mui/core/GlobalClass";
import { PetColor } from "./info/PetColor";
import { CareerConfig } from "../../resource/CareerConfig";
import { ECareer } from "../../../../Message/Public/ECareer";
import { SPlayerItem } from "../../../../Message/Public/SPlayerItem";
import { ItemsUtil } from "../shortcuts/item/ItemsUtil";
import { ItemData } from "../../resource/info/ItemData";
import { PetExperienceConfig } from "../../resource/PetExperienceConfig";
import { PetShareObject } from "./info/PetShareObject";
import { EffectManager } from "../../manager/EffectManager";
import { PetEventName } from "./PetEventName";
import { FeedType } from "./FeedType";
import { MsgManager } from "../../manager/MsgManager";
import { GLoadedButton } from "../../../../com/mui/controls/GLoadedButton";
import { GButton } from "../../../../com/mui/controls/GButton";
import { EPetStatus } from "../../../../Message/Game/EPetStatus";
import { PetDelAlertWindow } from "./PetDelAlertWindow";
import { AIType } from "../../scene/ai/AIType";
import { GameController } from "../../mvc/GameController";
import { PetChangeModelWindow } from "./changeModel/PetChangeModelWindow";
import { GameManager } from "../../manager/GameManager";
import { ShopOperType } from "../shop/ShopOperType";
import { GuideTipsManager } from "../../manager/GuideTipsManager";
import { TaskTargetInfo } from "../../model/TaskTargetInfo";
import { GTextFiled } from "../../../../com/mui/controls/GTextFiled";
import { GTextInput } from "../../../../com/mui/controls/GTextInput";
import { Mode_Self } from "../../../../GModuleEvent/Mode_Self";
import { _petInfo } from "../../../../this/_petInfo";
import { Life } from "../../../../FeedType/Life";
import { Energy } from "../../../../FeedType/Energy";
import { ChangeModelSuccessHandler } from "../../../../this/ChangeModelSuccessHandler";
type int = number;
//class PetDetailPanel
    
    export  class PetDetailPanel extends PetNewBaseView
    {
        constructor()
        {
            super();
            this._fightAttrLabelArray = Language.getString(54623).split(",");
            this._baseAttrLabelArray = Language.getString(54553).split(",");
            this._skillItemArray = [];
            this._petTaskTargetInfo = Cache.instance.scene.getNearlyNpcByCopyId(105);
            this.registToolTip();
            this.mouseEnabled = false;
            return;
        }

        public /* override */ updateByPetInfo(arg1: SPetInfo): void
        {
            this._petInfo = arg1;
            if (arg1) 
            {
                this._fightAttrPanel.resetPos();
                this.updateModelSprite(arg1);
                this.updatePetEquips(arg1);
                this.updateBaseSprite(arg1);
                this.updateAttrSprite(arg1);
                this.updateSkillSprite(arg1);
                this.updateBattleSprite(arg1);
                this.initNeedAlertChangeModel(arg1);
                this._WuXingProperty.data = [arg1.fightAttribute.goldRelief, arg1.fightAttribute.woodRelief, arg1.fightAttribute.waterRelief, arg1.fightAttribute.fireRelief, arg1.fightAttribute.earthRelief];
                this._strengthAddPanel.mode = arg1.isBorrow || this._isViewMode ? GModuleEvent.Mode_Other : Mode_Self;
                this._strengthAddPanel.curCareer = PetUtil.getPetCareer(arg1.career);
                this._strengthAddPanel.updateAddInfo();
            }
            else 
            {
                this.clear();
            }
            this.dealHirePet();
            if (this._changeModelWindow && !this._changeModelWindow.isHide) 
            {
                this._changeModelWindow.updateByPetinfo(arg1);
            }
            return;
        }

        /* internal  */onLinkTextClickHandler(arg1: Object /* flash.events.TextEvent */): void
        {
            var loc1=arg1.text;
            if (loc1 != "1") 
            {
                AIManager.onAutoPathAIControl(this._petTaskTargetInfo);
            }
            else 
            {
                Dispatcher.dispatchEvent(new DataEvent(EventName.ShopMallShowToTab, ShopRule.ShopMallPet));
            }
            return;
        }

        protected /* override */ init(): void
        {
            ObjCreate.createBg(0, 0, 285, 322, this);
            ObjCreate.createFlowerBg(0, 324, 285, 76, this);
            this.addChild(new GImageBitmap(ImagesConst.PetMainBg, 5, 4));
            this._petModel = new PetModelPanel();
            this._petModel.x = 140;
            this._petModel.y = 124;
            this.addChild(this._petModel);
            this._modelSprite = new Object /* flash.display.Sprite */();
            this._modelSprite.x = 0;
            this._modelSprite.y = 0;
            this.addChild(this._modelSprite);
            this._tileItem = new PetTileItem();
            this._tileItem.x = 10;
            this._tileItem.y = 10;
            this._modelSprite.addChild(this._tileItem);
            this._nameTxt = ObjCreate.createTextField("", 0, 10, 273, 20, this._modelSprite, GlobalStyle.textFormat2);
            this._nameTxt.autoSize = flash.text.TextFieldAutoSize.CENTER;
            this._titleBtn = ObjCreate.createGButton("称号", 223, 10, 50, 22, this._modelSprite);
            this._rebornTimePic = ObjCreate.createBitmap("", 40, 45, this._modelSprite);
            this._mingScoreItem = new PetMingScoreItem();
            this._mingScoreItem.x = 180;
            this._mingScoreItem.y = 35;
            this._modelSprite.addChild(this._mingScoreItem);
            this._typeBtn = ObjCreate.createGLoadedButton("", 10, 40, 29, 26, this._modelSprite);
            this._typeBtn.addEventListener(flash.events.MouseEvent.CLICK, this.onTypeBtnClickHandler);
            this._jianBtn = ObjCreate.createGLoadedButton(ResFileConst.Jian, 10, 70, 29, 26, this._modelSprite);
            this._jianBtn.addEventListener(flash.events.MouseEvent.CLICK, this.onJianBtnClickHandler);
            this._modelBtn = ObjCreate.createGLoadedButton(ResFileConst.PetHuaBtn, 10, 100, 29, 26, this._modelSprite);
            this._modelBtn.addEventListener(flash.events.MouseEvent.CLICK, this.onModelBtnClickHandler);
            this._changeModelBtn = ObjCreate.createGLoadedButton(ResFileConst.Bian, 10, 130, 29, 26, this._modelSprite);
            this._changeModelBtn.addEventListener(flash.events.MouseEvent.CLICK, this.onChangeModelBtnClickHandler);
            this._modelSprite.addChild(new GImageBitmap("PetTalentBg.png", 210, 100));
            this._talentLabel = ObjCreate.createGTextField(Language.getString(54208), 225, 110, 35, 35, this._modelSprite);
            this._talentTxt = ObjCreate.createGTextField("", 210, 130, 57, 35, this._modelSprite);
            this._talentTxt.autoSize = flash.text.TextFieldAutoSize.CENTER;
            this._strengthAddPanel = new EquipmentStrengthAddPanel();
            this._strengthAddPanel.equipTargetType = EquipTargetType.PetEquipStrengthenTarget;
            ObjCreate.setObjAttri(this._strengthAddPanel, 42, 71, -1, -1, this._modelSprite);
            this._talentTargetAdddPanel = new PetTalentTargetAddPanel();
            this._talentTargetAdddPanel.x = 240;
            this._talentTargetAdddPanel.y = 130;
            this._talentTargetAdddPanel.setCircle(25);
            this._modelSprite.addChild(this._talentTargetAdddPanel);
            this._jewelTargetAddPanel = new PetEquipJewelTargetAddPanel();
            this._jewelTargetAddPanel.x = 221;
            this._jewelTargetAddPanel.y = 60;
            this._modelSprite.addChild(this._jewelTargetAddPanel);
            this._baseSprite = new Object /* flash.display.Sprite */();
            this._baseSprite.x = 4;
            this._baseSprite.y = 170;
            this.addChild(this._baseSprite);
            ObjCreate.createBg(143, -10, 170, 1, this._baseSprite, ImagesConst.SeptalLine).rotation = 90;
            this._baseSprite.addChild(new GImageBitmap("RebornResistanceLabel.png", 170, -2));
            this._WuXingProperty = new WuXingPropertyDistribution();
            ObjCreate.setObjAttri(this._WuXingProperty, 138, 8, -1, -1, this._baseSprite);
            this._nameInput = ObjCreate.createGTextInput(0, 0, 110, 25, this._baseSprite);
            this._nameInput.maxChars = 6;
            this._nameInput.setStyle("textPadding", 4);
            this._titleBtn.addEventListener(flash.events.MouseEvent.CLICK, this.onTitleBtnClickHandler);
            this._modifyBtn = ObjCreate.createGButton(Language.getString(54212), 113, 1, 25, 23, this._baseSprite);
            this._modifyBtn.addEventListener(flash.events.MouseEvent.CLICK, this.onModifyBtnClickHandler);
            ObjCreate.createTextField(Language.getString(54209), 10, 36, 50, 20, this._baseSprite);
            this._lifeBar = new PetProcessBar(ImagesConst.RedBar10, 125);
            this._lifeBar.move(4, 56);
            this._lifeBar.setValue(0, 0);
            this._baseSprite.addChild(this._lifeBar);
            this._feedBtn = ObjCreate.createGButton(Language.getString(54210), 88, 34, 50, 20, this._baseSprite);
            this._feedBtn.addEventListener(flash.events.MouseEvent.CLICK, this.onFeedBtnClickHandler);
            ObjCreate.createTextField(Language.getString(54569), 10, 75, 50, 20, this._baseSprite);
            this._lifespanBar = new PetProcessBar(ImagesConst.PurpleBar10, 125);
            this._lifespanBar.move(4, 94);
            this._baseSprite.addChild(this._lifespanBar);
            this._addLifeSpanBtn = ObjCreate.createGButton(Language.getString(54570), 88, 72, 50, 20, this._baseSprite);
            this._addLifeSpanBtn.addEventListener(flash.events.MouseEvent.CLICK, this.onAddLifeSpanBtnClickHandler);
            ObjCreate.createTextField(Language.getString(54571), 10, 112, 50, 20, this._baseSprite);
            this._energyBar = new PetProcessBar(ImagesConst.YellowBar10, 125);
            this._energyBar.move(4, 132);
            this._baseSprite.addChild(this._energyBar);
            this._xunBtn = ObjCreate.createGButton(Language.getString(54214), 88, 110, 50, 20, this._baseSprite);
            this._xunBtn.addEventListener(flash.events.MouseEvent.CLICK, this.onXunBtnClickHandler);
            this._attrSprite = new Object /* flash.display.Sprite */();
            this._attrSprite.x = 288;
            this.addChild(this._attrSprite);
            ObjCreate.createBg(0, 0, 295, 193, this._attrSprite);
            ObjCreate.createBg(2, 2, 90, 24, this._attrSprite, ImagesConst.TileBg);
            ObjCreate.createBg(150, 2, 90, 24, this._attrSprite, ImagesConst.TileBg);
            ObjCreate.createBg(150, 0, 210, 1, this._attrSprite, ImagesConst.SeptalLine).rotation = 90;
            this._spiritTxt = ObjCreate.createTextField("", 5, 5, 95, 20, this._attrSprite, new GTextFormat(FontUtil.songtiName, 14, 15788607));
            this._spiritTxt.name = "spirit";
            this._spiritTxt.addEventListener(flash.events.MouseEvent.MOUSE_OVER, this.onTxtMouseOverHandler);
            this._spiritTxt.addEventListener(flash.events.MouseEvent.MOUSE_OUT, this.onTxtMouseOutHandler);
            this._upgradeBtn = ObjCreate.createGButton(Language.getString(54218), 90, 3, 50, 24, this._attrSprite, "ButtonRedMini");
            this._upgradeBtn.name = "upgrade";
            this._upgradeBtn.toolTipData = HTMLUtil.addColor(Language.getString(54219), "#FFFFFF");
            this._upgradeBtn.addEventListener(flash.events.MouseEvent.CLICK, this.onForgeBtnClickHandler);
            this._fightAttrPanel = new PetAttrPanel(this._fightAttrLabelArray, GlobalStyle.textFormat4, null, null, 18);
            this._fightAttrPanel.x = 5;
            this._fightAttrPanel.y = 30;
            this._attrSprite.addChild(this._fightAttrPanel);
            this._growthTxt = ObjCreate.createTextField("", 155, 5, 95, 20, this._attrSprite, new GTextFormat(FontUtil.songtiName, 14, 15788607));
            this._growthTxt.name = "growth";
            this._growthTxt.addEventListener(flash.events.MouseEvent.MOUSE_OVER, this.onTxtMouseOverHandler);
            this._growthTxt.addEventListener(flash.events.MouseEvent.MOUSE_OUT, this.onTxtMouseOutHandler);
            this._refineBtn = ObjCreate.createGButton(Language.getString(54218), 235, 3, 50, 24, this._attrSprite, "ButtonRedMini");
            this._refineBtn.toolTipData = HTMLUtil.addColor(Language.getString(54220), "#FFFFFF");
            this._refineBtn.addEventListener(flash.events.MouseEvent.CLICK, this.onForgeBtnClickHandler);
            this._baseAttrPanel = new PetAttrPanel(this._baseAttrLabelArray, GlobalStyle.textFormat5);
            this._baseAttrPanel.x = 155;
            this._baseAttrPanel.y = 30;
            this._attrSprite.addChild(this._baseAttrPanel);
            this._equipSprite = new Object /* flash.display.Sprite */();
            this._equipSprite.x = 288;
            this._equipSprite.y = 196;
            this.addChild(this._equipSprite);
            ObjCreate.createBg(0, 0, 295, 80, this._equipSprite);
            ObjCreate.createBg(2, 2, 90, 24, this._equipSprite, ImagesConst.TileBg);
            this._equipSprite.addChild(new GImageBitmap("PetEquipLabel.png", 5, 5));
            this._equipPanel = new PetEquipPanel();
            this._equipPanel.x = 10;
            this._equipPanel.y = 35;
            this._equipSprite.addChild(this._equipPanel);
            this._equipBtn = ObjCreate.createGButton(Language.getString(54572), 90, 5, 50, 20, this._equipSprite);
            this._equipBtn.name = "open";
            this._equipBtn.addEventListener(flash.events.MouseEvent.CLICK, this.onEquipBtnClick);
            this._equipFixBtn = ObjCreate.createGButton(Language.getString(54573), 165, 5, 50, 20, this._equipSprite);
            this._equipFixBtn.name = "fix";
            this._equipFixBtn.addEventListener(flash.events.MouseEvent.CLICK, this.onEquipBtnClick);
            this._equipForgeBtn = ObjCreate.createGButton(Language.getString(54574), 240, 5, 50, 20, this._equipSprite);
            this._equipForgeBtn.name = "forge";
            this._equipForgeBtn.addEventListener(flash.events.MouseEvent.CLICK, this.onEquipBtnClick);
            this._skillSprite = new Object /* flash.display.Sprite */();
            this._skillSprite.x = 288;
            this._skillSprite.y = 278;
            this.addChild(this._skillSprite);
            ObjCreate.createBg(0, 0, 295, 122, this._skillSprite);
            ObjCreate.createBg(2, 2, 90, 24, this._skillSprite, ImagesConst.TileBg);
            this._skillSprite.addChild(new GImageBitmap("PetSkillLabel.png", 5, 5));
            ObjCreate.createBg(250, 35, 80, 1, this._skillSprite, ImagesConst.SeptalLine).rotation = 90;
            this._studySkillBtn = ObjCreate.createGButton(Language.getString(54223), 90, 5, 50, 20, this._skillSprite);
            this._studySkillBtn.addEventListener(flash.events.MouseEvent.CLICK, this.onStudySkillBtnClickHandler);
            this._forgetBtn = ObjCreate.createGButton(Language.getString(54224), 165, 5, 50, 20, this._skillSprite);
            this._forgetBtn.addEventListener(flash.events.MouseEvent.CLICK, this.onForgetBtnClickHandler);
            this._digBtn = ObjCreate.createGButton(Language.getString(54575), 240, 5, 50, 20, this._skillSprite);
            this._digBtn.addEventListener(flash.events.MouseEvent.CLICK, this.onDigBtnClickHandler);
            this._skillListPanel = new PetDetailSkillListPanel();
            this._skillListPanel.x = 10;
            this._skillListPanel.y = 35;
            this._skillSprite.addChild(this._skillListPanel);
            this._battleSprite = new Object /* flash.display.Sprite */();
            this._battleSprite.y = 283;
            this.addChild(this._battleSprite);
            this._abandonBtn = ObjCreate.createGLoadedButton(ResFileConst.PetGiveUpBtn, 45, 57, 28, 28, this._battleSprite);
            this._abandonBtn.addEventListener(flash.events.MouseEvent.CLICK, this.onAbandonBtnClickHandler);
            this._practiceBtn = ObjCreate.createGLoadedButton(ResFileConst.PetSpiritBtn, 198, 57, 28, 28, this._battleSprite);
            this._practiceBtn.toolTipData = HTMLUtil.addColor(Language.getString(28012), "#FFFFFF");
            this._practiceBtn.addEventListener(flash.events.MouseEvent.CLICK, this.onJuBtnClickHandler);
            this._practiceBtn.enabled = Cache.instance.petMing.isOpenJu;
            this._practiceBtn.filters = Cache.instance.petMing.isOpenJu ? null : [FilterConst.colorFilter2];
            this._battleBtn = ObjCreate.createGLoadedButton(ResFileConst.PetComeOutBtn, 100, 58, 69, 26, this._battleSprite);
            this._battleBtn.addEventListener(flash.events.MouseEvent.CLICK, this.onBattleBtnClickHandler);
            ObjCreate.createTextField(Language.getString(54215), 10, 95, 50, 20, this._battleSprite);
            this._expBar = new PetProcessBar(ImagesConst.GreenBar10, 168);
            this._expBar.move(60, 97);
            this._expBar.setValue(0, 0);
            this._battleSprite.addChild(this._expBar);
            this._levelTxt = ObjCreate.createTextField("", 232, 87, 30, 30, this._battleSprite, new GTextFormat(FontUtil.songtiName, 22, 15788607, true));
            this._levelTxt.autoSize = flash.text.TextFieldAutoSize.CENTER;
            ObjCreate.createTextField(Language.getString(54216), 260, 95, 50, 20, this._battleSprite);
            return;
        }

        public updateChangeModelList(arg1: SPetModelList): void
        {
            var loc1=null;
            var loc2=null;
            var loc3=null;
            if (this._changeModelWindow && !this._changeModelWindow.isHide && arg1) 
            {
                loc1 = [];
                var loc4=0;
                var loc5=arg1.modelList;
                for (loc2 in loc5) 
                {
                    (loc3 = new PetChangeModelData()).code = int(loc2);
                    loc3.activate = int(arg1.modelList[loc2]);
                    loc1.push(loc3);
                }
                loc1.sortOn(["activate", "attrType"], [Array.NUMERIC, Array.DESCENDING | Array.NUMERIC]);
                this._changeModelWindow.updateList(loc1);
            }
            return;
        }

        /* internal  */registToolTip(): void
        {
            var loc3=null;
            var loc1=HTMLUtil.addColor(Language.getString(54228), "#FFFFFF");
            this._talentLabel.toolTipData = loc1;
            this._talentTxt.toolTipData = loc1;
            this._jianBtn.toolTipData = HTMLUtil.addColor(Language.getString(54229), "#FFFFFF");
            this._feedBtn.toolTipData = HTMLUtil.addColor(Language.getString(54230), "#FFFFFF");
            this._modifyBtn.toolTipData = HTMLUtil.addColor(Language.getString(54231), "#FFFFFF");
            this._xunBtn.toolTipData = HTMLUtil.addColor(Language.getString(54232), "#FFFFFF");
            this._abandonBtn.toolTipData = HTMLUtil.addColor(Language.getString(54233), "#FFFFFF");
            this._addLifeSpanBtn.toolTipData = HTMLUtil.addColor(Language.getString(54234), "#FFFFFF");
            this._forgetBtn.toolTipData = HTMLUtil.addColor(Language.getString(54235), "#ffffff");
            var loc2=[];
            var loc4=0;
            while (loc4 < 15) 
            {
                loc3 = HTMLUtil.addColor(GameDefConfig.instance.getPetAttrDesc(loc4), "#FFFFFF");
                loc2.push(loc3);
                ++loc4;
            }
            this._fightAttrPanel.regLabelTip(loc2.slice(0, 10));
            this._baseAttrPanel.regLabelTip(loc2.slice(10, 15));
            return;
        }

        /* internal  */onTxtMouseOverHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            var loc1=null;
            if (this._petInfo) 
            {
                loc1 = arg1.target as Object /* flash.text.TextField */;
                if (this._labelTip == null) 
                {
                    this._labelTip = new BgLabelToolTip();
                    this._labelTip.x = 305;
                }
                if (!this._attrSprite.contains(this._labelTip)) 
                {
                    this._attrSprite.addChild(this._labelTip);
                }
                if (loc1.name != "spirit") 
                {
                    if (loc1.name == "growth") 
                    {
                        this._labelTip.data = PetUtil.getLabelToolTipData(1) + "\n" + PetUtil.getGrowthTitleTipData(this._petInfo.growth);
                    }
                }
                else 
                {
                    this._labelTip.data = PetUtil.getLabelToolTipData(0) + "\n" + PetUtil.getSpiritTitleTipData(this._petInfo.spirit);
                }
            }
            return;
        }

        /* internal  */onTxtMouseOutHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            var loc1=arg1.target as Object /* flash.text.TextField */;
            if (loc1.name != "spirit") 
            {
                if (loc1.name != "growth") 
                {
                };
            }
            if (this._labelTip && this._attrSprite.contains(this._labelTip)) 
            {
                this._attrSprite.removeChild(this._labelTip);
            }
            return;
        }

        /* internal  */set rebornTimeBitmapData(arg1: int)
        {
            if (arg1 > 0) 
            {
                this._rebornTimePic.bitmapData = GlobalClass.getBitmapData("mountReinLevel_" + arg1);
            }
            else 
            {
                this._rebornTimePic.bitmapData = null;
            }
            return;
        }

        /* internal  */updateModelSprite(arg1: SPetInfo): void
        {
            var loc3=null;
            var loc4=null;
            var loc1="";
            var loc2="";
            if (arg1) 
            {
                this.rebornTimeBitmapData = arg1.reinLevel;
                this._petModel.updateModelByModelId(PetUtil.getShowModelId(arg1));
                if (arg1.code != arg1.changeCode) 
                {
                    loc2 = HTMLUtil.addColor(Language.getString(54238), GlobalStyle.color6);
                }
                this._nameTxt.htmlText = loc2 + PetColor.getColorName(arg1);
                this._tileItem.petInfo = arg1;
                this._talentTxt.htmlText = HTMLUtil.addColor(arg1.talent.toString(), PetColor.getTalentColor(arg1).color);
                if (loc3 = CareerConfig.instance.getInfoByCode(arg1.career)) 
                {
                    if (PetUtil.getCareer(loc3.code) != ECareer._ECareerPetPhysical) 
                    {
                        if (PetUtil.getCareer(loc3.code) != ECareer._ECareerPetMagic) 
                        {
                            if (PetUtil.getCareer(loc3.code) == ECareer._ECareerPetPhysique) 
                            {
                                this._typeBtn.styleName = ResFileConst.Ling;
                                loc4 = Language.getString(54241);
                            }
                        }
                        else 
                        {
                            this._typeBtn.styleName = ResFileConst.Mo;
                            loc4 = Language.getString(54240);
                        }
                    }
                    else 
                    {
                        this._typeBtn.styleName = ResFileConst.Wu;
                        loc4 = Language.getString(54239);
                    }
                    loc4 = loc4 + Language.getString(54242);
                    this._typeBtn.toolTipData = "<textFormat leading=\'3\'>" + HTMLUtil.addColor(loc4, "#FFFFFF") + "</textFormat>";
                    this._typeBtn.drawNow();
                }
                this._talentTargetAdddPanel.updateByTalent(arg1.talent, arg1.career, arg1.reinLevel);
                if (arg1.isBorrow || this._isViewMode || !Cache.instance.petMing.isOpenJu) 
                {
                    this._practiceBtn.enabled = false;
                    this._practiceBtn.filters = [FilterConst.colorFilter2];
                }
                else 
                {
                    this._practiceBtn.enabled = true;
                    this._practiceBtn.filters = null;
                }
                this._mingScoreItem.playerItems = arg1.items.filter(this.isLifeStyle);
            }
            return;
        }

        /* internal  */isLifeStyle(arg1: SPlayerItem, arg2: int, arg3: Array<any>): Boolean
        {
            return ItemsUtil.isPetLifeStyle(new ItemData(arg1));
        }

        public updatePetEquips(arg1: SPetInfo): void
        {
            var loc2=false;
            var loc3=null;
            var loc4=null;
            var loc1=[];
            if (this._isViewMode || arg1 && arg1.isBorrow) 
            {
                var loc5=0;
                var loc6=arg1.items;
                for(loc3 of loc6) 
                {
                    loc4 = new ItemData(loc3);
                    if (!ItemsUtil.isPetEquip(loc4)) 
                    {
                        continue;
                    }
                    loc1.push(loc4);
                }
                loc2 = false;
            }
            else 
            {
                loc1 = arg1 ? Cache.instance.pack.petEquip.getPetEquipsByPetId(arg1.petId) : [];
                loc2 = true;
            }
            if (!loc1) 
            {
                loc1 = [];
            }
            if (arg1.isBorrow || this._isViewMode) 
            {
                PetUtil.otherEquipments = loc1;
            }
            else 
            {
                PetUtil.selfEquipments = loc1;
            }
            this._equipPanel.updateEquips(loc1, loc2);
            this._jewelTargetAddPanel.updateJewelAddInfo(arg1.career, loc1);
            return;
        }

        /* internal  */updateBaseSprite(arg1: SPetInfo): void
        {
            var loc2=NaN;
            var loc1=null;
            if (arg1) 
            {
                loc1 = arg1.fightAttribute;
                this._lifeBar.setValue(arg1.life, loc1.maxLife);
                if (this._backName != arg1.name) 
                {
                    this._nameInput.text = arg1.name;
                    this._backName = arg1.name;
                }
                this._lifespanBar.setValue(int(arg1.lifeSpan / 5), int(arg1.maxLifeSpan / 5));
                this._energyBar.setValue(int(arg1.energy / 3), int(arg1.maxEnergy / 3));
                loc2 = PetExperienceConfig.instance.getValueByLevel(PetExperienceConfig.getLevel(arg1));
                this._expBar.setValue(arg1.experience, loc2);
                this._levelTxt.text = arg1.level.toString();
            }
            return;
        }

        /* internal  */updateAttrSprite(arg1: SPetInfo): void
        {
            var loc1=[];
            var loc2=[];
            var loc3=null;
            if (arg1) 
            {
                this._spiritTxt.htmlText = HTMLUtil.addColor(Language.getString(54243) + arg1.spirit.toString(), PetUtil.getSpiritTitleColor(arg1.spirit));
                this._growthTxt.htmlText = HTMLUtil.addColor(Language.getString(54244) + arg1.growth.toString(), PetUtil.getGrowthTitleColor(arg1.growth));
                loc3 = arg1.fightAttribute;
                loc1.push(loc3.physicalAttack);
                loc1.push(loc3.magicAttack);
                if (loc3.physicalAttack > 0) 
                {
                    this._fightAttrPanel.hideAttr(1);
                }
                else 
                {
                    this._fightAttrPanel.hideAttr(0);
                }
                loc1.push(loc3.physicalDefense);
                loc1.push(loc3.magicDefense);
                loc1.push(loc3.hit);
                loc1.push(loc3.jouk);
                loc1.push(loc3.physicalCrit + loc3.magicCrit);
                loc1.push(loc3.pass);
                loc1.push(loc3.toughness);
                loc1.push(loc3.relief);
                loc2 = PetUtil.getSpiritAddValueArray(arg1);
                loc1.push(loc3.power);
                loc1.push(loc3.agile);
                loc1.push(loc3.habitus);
                loc1.push(loc3.brains);
                loc1.push(loc3.spiritual);
                loc2 = loc2.concat(PetUtil.getGrowthAddValueArray(arg1));
                this._fightAttrPanel.updateValue(loc1.slice(0, 10));
                this._fightAttrPanel.updateAddValue(loc2.slice(0, 10));
                this._baseAttrPanel.updateValue(loc1.slice(10, 15));
                this._baseAttrPanel.updateAddValue(loc2.slice(10, 15));
                if (this._petInfo.spirit >= this._maxSpirit) 
                {
                    this._upgradeBtn.visible = false;
                }
                else 
                {
                    this._upgradeBtn.visible = true;
                }
                if (this._petInfo.growth >= this._maxGrowth) 
                {
                    this._refineBtn.visible = false;
                }
                else 
                {
                    this._refineBtn.visible = true;
                }
            }
            return;
        }

        /* internal  */getAdditionBySpirit(arg1: int): string
        {
            var loc2=NaN;
            var loc1="";
            if (this._petInfo) 
            {
                loc2 = arg1 * this._petInfo.spirit / 10;
                loc1 = "（+" + Math.floor(loc2) + "）";
            }
            return loc1;
        }

        /* internal  */getAdditionByGrowth(): string
        {
            var loc2=NaN;
            var loc1="";
            if (this._petInfo) 
            {
                loc2 = (this._petInfo.growth / 5 - 4) * (this._petInfo.level - 1);
                loc1 = "（+" + Math.floor(loc2) + "）";
            }
            return loc1;
        }

        /* internal  */updateSkillSprite(arg1: SPetInfo): void
        {
            this._skillListPanel.petInfo = arg1;
            return;
        }

        /* internal  */updateBattleSprite(arg1: SPetInfo): void
        {
            if (arg1) 
            {
                if (PetUtil.isBattled(arg1)) 
                {
                    this._battleBtn.styleName = ResFileConst.PetCallBackBtn;
                }
                else 
                {
                    this._battleBtn.styleName = ResFileConst.PetComeOutBtn;
                }
            }
            return;
        }

        /* internal  */initNeedAlertChangeModel(arg1: SPetInfo): void
        {
            var loc1=null;
            var loc2=null;
            var loc3=false;
            if (arg1) 
            {
                loc1 = PetUtil.getPetUpgradeModel(arg1);
                if (loc1 != null) 
                {
                    this._isHasUpgradeModel = true;
                    this._changeModelBtn.visible = true;
                }
                else 
                {
                    this._isHasUpgradeModel = false;
                    this._changeModelBtn.visible = false;
                }
                loc2 = PetUtil.getGrowthTitle(arg1.growth);
                if (loc2 != null) 
                {
                    this._isUpgrade = true;
                }
                else 
                {
                    this._isUpgrade = false;
                }
                if (this._isHasUpgradeModel && this._isUpgrade) 
                {
                    if (loc3 = PetShareObject.isNeedAlert(PetShareObject.ChangeModelKey)) 
                    {
                        this.flashButton();
                    }
                    else 
                    {
                        this.onFlashCompleteHandler(null);
                    }
                }
                else 
                {
                    this.onFlashCompleteHandler(null);
                }
            }
            return;
        }

        public flashButton(): void
        {
            if (this._flashTimer == null) 
            {
                this._flashTimer = new Object /* flash.utils.Timer */(1000);
                this._flashTimer.repeatCount = 5;
            }
            this._flashTimer.addEventListener(flash.events.TimerEvent.TIMER_COMPLETE, this.onFlashCompleteHandler);
            this._flashTimer.reset();
            this._flashTimer.start();
            EffectManager.glowFilterReg(this._changeModelBtn, [FilterConst.uiBtnFilter]);
            return;
        }

        /* internal  */onFlashCompleteHandler(arg1: Object /* flash.events.Event */): void
        {
            if (this._flashTimer) 
            {
                this._flashTimer.stop();
            }
            EffectManager.glowFilterUnReg(this._changeModelBtn);
            return;
        }

        /* internal  */onFeedBtnClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            if (this._petInfo) 
            {
                Dispatcher.dispatchEvent(new DataEvent(PetEventName.PetFeedClick, {"petInfo": _petInfo, "feedType": Life}));
            }
            return;
        }

        /* internal  */onTitleBtnClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            if (this._petInfo && !this._isViewMode) 
            {
                Dispatcher.dispatchEvent(new DataEvent(EventName.PetTitleOpen, this._petInfo));
            }
            return;
        }

        /* internal  */onModifyBtnClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            if (this._nameInput.text.indexOf("<") != -1) 
            {
                MsgManager.showRollTipsMsg(Language.getString(28034));
                return;
            }
            if (this._petInfo) 
            {
                Dispatcher.dispatchEvent(new DataEvent(EventName.PetModify, {"uid": this._petInfo.uid, "petName": this._nameInput.text}));
            }
            return;
        }

        /* internal  */onXunBtnClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            if (this._petInfo) 
            {
                Dispatcher.dispatchEvent(new DataEvent(PetEventName.PetFeedClick, {"petInfo": _petInfo, "feedType": Energy}));
            }
            return;
        }

        /* internal  */onBattleBtnClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            var loc1=arg1.target as GLoadedButton;
            if (this._petInfo && loc1) 
            {
                if (loc1.styleName != ResFileConst.PetCallBackBtn) 
                {
                    Dispatcher.dispatchEvent(new DataEvent(EventName.PetBattle, this._petInfo));
                }
                else 
                {
                    Dispatcher.dispatchEvent(new DataEvent(EventName.PetRest));
                }
            }
            return;
        }

        /* internal  */onForgeBtnClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            var loc1=arg1.target as GButton;
            if (loc1) 
            {
                if (loc1.name != "upgrade") 
                {
                    Dispatcher.dispatchEvent(new DataEvent(PetEventName.PetShowToTab, 2));
                }
                else 
                {
                    Dispatcher.dispatchEvent(new DataEvent(PetEventName.PetShowToTab, 1));
                }
            }
            return;
        }

        /* internal  */onStudySkillBtnClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            Dispatcher.dispatchEvent(new DataEvent(PetEventName.PetShowToTab, 3));
            return;
        }

        /* internal  */onDigBtnClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            Dispatcher.dispatchEvent(new DataEvent(PetEventName.PetShowToTab, 4));
            return;
        }

        /* internal  */onForgetBtnClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            var loc1=this._skillListPanel.selectedSkillInfo;
            if (this._petInfo) 
            {
                if (loc1) 
                {
                    Dispatcher.dispatchEvent(new DataEvent(PetEventName.PetOpenForgetSkillWindow, {"petInfo": _petInfo, "skillInfo": loc1}));
                }
                else 
                {
                    MsgManager.showRollTipsMsg(Language.getString(54247));
                }
            }
            return;
        }

        /* internal  */onAbandonBtnClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            if (this._petInfo) 
            {
                if (this._petInfo.isBorrow) 
                {
                    Dispatcher.dispatchEvent(new DataEvent(EventName.PetHireFire, this._petInfo));
                }
                else 
                {
                    if (this._petInfo.status == EPetStatus._EPetSire) 
                    {
                        MsgManager.showRollTipsMsg(Language.getString(54248));
                        return;
                    }
                    if (this._petInfo.status == EPetStatus._EpetTrain) 
                    {
                        MsgManager.showRollTipsMsg(Language.getString(54249));
                        return;
                    }
                    if (PetUtil.isBattled(this._petInfo)) 
                    {
                        MsgManager.showRollTipsMsg(Language.getString(54250));
                        return;
                    }
                    if (PetUtil.hasLifeStyle(this._petInfo)) 
                    {
                        MsgManager.showRollTipsMsg(Language.getString(54784));
                        return;
                    }
                    if (PetColor.isAbovePurple(this._petInfo.talent)) 
                    {
                        PetDelAlertWindow.instance.mode = PetDelAlertWindow.ValidateMode;
                    }
                    else 
                    {
                        PetDelAlertWindow.instance.mode = PetDelAlertWindow.NormalMode;
                    }
                    PetDelAlertWindow.instance.petInfo = this._petInfo;
                    PetDelAlertWindow.instance.show();
                }
            }
            return;
        }

        /* internal  */onJuBtnClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            var loc1=null;
            if (this._petInfo) 
            {
                loc1 = this._petInfo.uid;
            }
            Dispatcher.dispatchEvent(new DataEvent(EventName.PetMingMoudleOpen, loc1));
            EffectManager.glowFilterUnReg(this._practiceBtn);
            return;
        }

        public guidePetCall(arg1: Function): void
        {
            arg1(this._battleSprite.x + this._battleBtn.x + this._battleBtn.width, this._battleSprite.y + this._battleBtn.y + this._battleBtn.height / 2, this._battleBtn);
            EffectManager.glowFilterReg(this._battleBtn, [FilterConst.guidePetCall]);
            return;
        }

        public guidePetfresh(arg1: Function, arg2: int): void
        {
            var loc1=this._attrSprite.localToGlobal(new Object /* flash.geom.Point */(this._refineBtn.x, this._refineBtn.y));
            arg1(this._attrSprite.x + this._refineBtn.x + this._refineBtn.width, this._attrSprite.y + this._refineBtn.y + this._refineBtn.height / 2, this._refineBtn, loc1, arg2);
            return;
        }

        public hideGuidePet(): void
        {
            EffectManager.glowFilterUnReg(this._battleBtn);
            EffectManager.glowFilterUnReg(this._refineBtn);
            return;
        }

        /* internal  */onAddLifeSpanBtnClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            if (this._petInfo) 
            {
                Dispatcher.dispatchEvent(new DataEvent(EventName.PetLifespanWindowOpen, this._petInfo.uid));
            }
            return;
        }

        /* internal  */onFlyFootClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            AIManager.onAIControl(this._petTaskTargetInfo, AIType.AI_Convey);
            return;
        }

        /* internal  */getTileTipData(): string
        {
            var loc1=null;
            if (this._petInfo) 
            {
                loc1 = PetUtil.getPetTitleTipData(this._petInfo.growth, this._petInfo.spirit);
            }
            return loc1;
        }

        /* internal  */getTitle(): string
        {
            var loc2=null;
            var loc1="";
            if (this._petInfo) 
            {
                loc2 = PetUtil.getPetTitle(this._petInfo.growth, this._petInfo.spirit);
                if (loc2 != "") 
                {
                    loc1 = "<font size=\'14\'><b>" + loc2 + "</b></font> ● ";
                }
            }
            return loc1;
        }

        public showViewMode(): void
        {
            this._isViewMode = true;
            this._modifyBtn.enabled = false;
            this._feedBtn.enabled = false;
            this._addLifeSpanBtn.enabled = false;
            this._xunBtn.enabled = false;
            this._upgradeBtn.enabled = false;
            this._refineBtn.enabled = false;
            this._equipBtn.enabled = false;
            this._equipFixBtn.enabled = false;
            this._equipForgeBtn.enabled = false;
            this._studySkillBtn.enabled = false;
            this._forgetBtn.enabled = false;
            this._digBtn.enabled = false;
            this._abandonBtn.enabled = false;
            this._abandonBtn.filters = [FilterConst.colorFilter2];
            this._battleBtn.enabled = false;
            this._nameInput.editable = false;
            this._practiceBtn.enabled = false;
            this._practiceBtn.filters = [FilterConst.colorFilter2];
            this._battleBtn.styleName = ResFileConst.PetComeOutBtn;
            return;
        }

        /* internal  */onChangeModelBtnClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            if (this._petInfo) 
            {
                if (this._isHasUpgradeModel == false) 
                {
                    MsgManager.showRollTipsMsg(Language.getString(54251));
                    return;
                }
                if (this._isUpgrade == false) 
                {
                    MsgManager.showRollTipsMsg(Language.getString(54252));
                    return;
                }
                Dispatcher.dispatchEvent(new DataEvent(EventName.PetChangeUpgradeModel, {"petUid": this._petInfo.uid, "callBack": ChangeModelSuccessHandler}));
            }
            return;
        }

        /* internal  */ChangeModelSuccessHandler(): void
        {
            PetShareObject.save(PetShareObject.ChangeModelKey);
            return;
        }

        /* internal  */onJianBtnClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            GameController.petIllu.view.show();
            return;
        }

        /* internal  */onModelBtnClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            if (!this._petInfo || this._isViewMode) 
            {
                return;
            }
            if (PetUtil.isBattled(this._petInfo)) 
            {
                MsgManager.showRollTipsMsg(Language.getString(54200));
                Dispatcher.dispatchEvent(new DataEvent(EventName.PetCallBackAlert));
                return;
            }
            if (!this._changeModelWindow) 
            {
                this._changeModelWindow = new PetChangeModelWindow();
            }
            this._changeModelWindow.updateByPetinfo(this._petInfo);
            this._changeModelWindow.show();
            return;
        }

        /* internal  */onEquipBtnClick(arg1: Object /* flash.events.MouseEvent */): void
        {
            var loc1=(arg1.target as GButton).name;
            if (loc1 != "open") 
            {
                if (loc1 != "fix") 
                {
                    if (loc1 == "forge") 
                    {
                        GameManager.instance.popupView(GameController.petEquip.view);
                    }
                }
                else if (Cache.instance.shop.operType != ShopOperType.FIX) 
                {
                    Cache.instance.shop.operType = ShopOperType.FIX;
                }
                else 
                {
                    Cache.instance.shop.operType = "";
                }
            }
            else 
            {
                Dispatcher.dispatchEvent(new DataEvent(EventName.PetEquipsBagShowOrHide));
            }
            return;
        }

        /* internal  */onTypeBtnClickHandler(arg1: Object /* flash.events.MouseEvent */): void
        {
            if (this._petInfo && this._petInfo.isBorrow == false && this._isViewMode == false) 
            {
                Dispatcher.dispatchEvent(new DataEvent(PetEventName.PetBrainwashWindowOpen, {"petInfo": _petInfo}));
            }
            return;
        }

        /* internal  */dealHirePet(): void
        {
            if (this._petInfo && this._petInfo.isBorrow) 
            {
                this._addLifeSpanBtn.visible = false;
                this._studySkillBtn.visible = false;
                this._forgetBtn.visible = false;
                this._refineBtn.visible = false;
                this._upgradeBtn.visible = false;
                this._abandonBtn.toolTipData = HTMLUtil.addColor(Language.getString(54254), "#FFFFFF");
            }
            else 
            {
                this._addLifeSpanBtn.visible = true;
                this._studySkillBtn.visible = true;
                this._forgetBtn.visible = true;
                this._refineBtn.visible = true;
                this._upgradeBtn.visible = true;
                this._abandonBtn.toolTipData = HTMLUtil.addColor(Language.getString(54256), "#FFFFFF");
            }
            return;
        }

        public guidePetLifeDressOpen(): void
        {
            var loc1=GuideTipsManager.getGuideTips(GuideTipsManager.Dir_BL, Language.getString(27206));
            loc1.x = this._battleSprite.x + this._practiceBtn.x + this._practiceBtn.width;
            loc1.y = this._battleSprite.y + this._practiceBtn.y + this._practiceBtn.height / 2;
            addChild(loc1);
            EffectManager.glowFilterReg(this._practiceBtn);
            EffectManager.glowFilterReg(loc1);
            return;
        }

        public clear(): void
        {
            this._nameTxt.text = "";
            this._typeBtn.toolTipData = "";
            this._talentTxt.text = "";
            this._lifeBar.setValue(0, 0);
            this._nameInput.text = "";
            this._lifespanBar.setValue(0, 0);
            this._energyBar.setValue(0, 0);
            this._expBar.setValue(0, 0);
            this._levelTxt.text = "";
            this._spiritTxt.text = "";
            this._growthTxt.text = "";
            this.rebornTimeBitmapData = 0;
            this._fightAttrPanel.clear();
            this._baseAttrPanel.clear();
            this._skillListPanel.clear();
            this._equipPanel.updateEquips([], false);
            this._WuXingProperty.clean();
            if (GuideTipsManager.guideTips.parent == this) 
            {
                GuideTipsManager.hideGuideTips();
            }
            return;
        }

        /* internal */ /* var */_practiceBtn: GLoadedButton;

        /* internal */ /* var */_battleBtn: GLoadedButton;

        /* internal */ /* var */_labelTip: BgLabelToolTip;

        /* internal */ /* var */_changeModelWindow: PetChangeModelWindow;

        /* internal */ /* var */_fightAttrLabelArray: Array<any>;

        /* internal */ /* var */_baseAttrLabelArray: Array<any>;

        /* internal */ /* var */_skillItemArray: Array<any>;

        /* internal */ /* var */_petInfo: SPetInfo;

        /* internal */ /* var */_changeModelBtn: GLoadedButton;

        /* internal */ /* var */_maxGrowth: int=40;

        /* internal */ /* var */_backName: string;

        /* internal */ /* var */_strengthAddPanel: EquipmentStrengthAddPanel;

        /* internal */ /* var */_petTaskTargetInfo: TaskTargetInfo;

        /* internal */ /* var */_isViewMode: Boolean=false;

        /* internal */ /* var */_isHasUpgradeModel: Boolean=false;

        /* internal */ /* var */_isUpgrade: Boolean=false;

        /* internal */ /* var */_flashTimer: Object /* flash.utils.Timer */;

        /* internal */ /* var */_modelSprite: Object /* flash.display.Sprite */;

        /* internal */ /* var */_baseSprite: Object /* flash.display.Sprite */;

        /* internal */ /* var */_attrSprite: Object /* flash.display.Sprite */;

        /* internal */ /* var */_skillSprite: Object /* flash.display.Sprite */;

        /* internal */ /* var */_battleSprite: Object /* flash.display.Sprite */;

        /* internal */ /* var */_maxSpirit: int=20;

        /* internal */ /* var */_equipSprite: Object /* flash.display.Sprite */;

        /* internal */ /* var */_WuXingProperty: WuXingPropertyDistribution;

        /* internal */ /* var */_titleTxt: GTextFiled;

        /* internal */ /* var */_tileItem: PetTileItem;

        /* internal */ /* var */_nameTxt: Object /* flash.text.TextField */;

        /* internal */ /* var */_typeBtn: GLoadedButton;

        /* internal */ /* var */_jianBtn: GLoadedButton;

        /* internal */ /* var */_modelBtn: GLoadedButton;

        /* internal */ /* var */_talentLabel: GTextFiled;

        /* internal */ /* var */_talentTxt: GTextFiled;

        /* internal */ /* var */_talentTargetAdddPanel: PetTalentTargetAddPanel;

        /* internal */ /* var */_jewelTargetAddPanel: PetEquipJewelTargetAddPanel;

        /* internal */ /* var */_petModel: PetModelPanel;

        /* internal */ /* var */_mingScoreItem: PetMingScoreItem;

        /* internal */ /* var */_lifeBar: PetProcessBar;

        /* internal */ /* var */_lifespanBar: PetProcessBar;

        /* internal */ /* var */_energyBar: PetProcessBar;

        /* internal */ /* var */_expBar: PetProcessBar;

        /* internal */ /* var */_nameInput: GTextInput;

        /* internal */ /* var */_feedBtn: GButton;

        /* internal */ /* var */_titleBtn: GButton;

        /* internal */ /* var */_rebornTimePic: Object /* flash.display.Bitmap */;

        /* internal */ /* var */_modifyBtn: GButton;

        /* internal */ /* var */_xunBtn: GButton;

        /* internal */ /* var */_addLifeSpanBtn: GButton;

        /* internal */ /* var */_levelTxt: Object /* flash.text.TextField */;

        /* internal */ /* var */_upgradeBtn: GButton;

        /* internal */ /* var */_skillListPanel: PetDetailSkillListPanel;

        /* internal */ /* var */_refineBtn: GButton;

        /* internal */ /* var */_spiritTxt: Object /* flash.text.TextField */;

        /* internal */ /* var */_fightAttrPanel: PetAttrPanel;

        /* internal */ /* var */_growthTxt: Object /* flash.text.TextField */;

        /* internal */ /* var */_baseAttrPanel: PetAttrPanel;

        /* internal */ /* var */_equipPanel: PetEquipPanel;

        /* internal */ /* var */_equipBtn: GButton;

        /* internal */ /* var */_equipFixBtn: GButton;

        /* internal */ /* var */_equipForgeBtn: GButton;

        /* internal */ /* var */_studySkillBtn: GButton;

        /* internal */ /* var */_forgetTipTxt: Object /* flash.text.TextField */;

        /* internal */ /* var */_forgetBtn: GButton;

        /* internal */ /* var */_digBtn: GButton;

        /* internal */ /* var */_abandonBtn: GLoadedButton;
    }
